package ooday03;

public class InterfaceDemo {
    public static void main(String[] args) {


    }
}

//接口的语法
interface Inter1{
    void show();
}
interface Inter2{
    void test();
}
//接口的实现
class Aoo implements Inter1,Inter2{
    public void show() {//重写接口中的方法必须加public

    }
    public void test(){

    }
}
//接口的多实现
abstract class Boo{
    abstract void say();
}
class Coo extends Boo implements Inter1,Inter2{
    void say() {

    }
    public void show() {

    }
    public void test() {

    }
}

interface Inter3 extends Inter2{
    void study();
}

class Doo implements Inter3{
    public void study() {

    }

    public void test() {

    }
}








